import request from '@/utils/request'

// 查询档案柜列表
export function listFilingCabinet(query) {
  return request({
    url: '/fund/filingCabinet/list',
    method: 'get',
    params: query
  })
}

// 查询档案柜详细
export function getFilingCabinet(filingId) {
  return request({
    url: '/fund/filingCabinet/' + filingId,
    method: 'get'
  })
}

// 新增档案柜
export function addFilingCabinet(data) {
  return request({
    url: '/fund/filingCabinet',
    method: 'post',
    data: data
  })
}

// 修改档案柜
export function updateFilingCabinet(data) {
  return request({
    url: '/fund/filingCabinet',
    method: 'put',
    data: data
  })
}

// 删除档案柜
export function delFilingCabinet(filingId) {
  return request({
    url: '/fund/filingCabinet/' + filingId,
    method: 'delete'
  })
}
